#!/usr/bin/env python
# -*- encoding: utf-8 -*-

from socket import *

clnt_sock = socket(AF_INET, SOCK_STREAM)
clnt_sock.connect(('', 9999))
print "서버 접속 완료"

clnt_sock.settimeout(3)
print "메시지 수신 타임아웃 설정 :", clnt_sock.gettimeout()

print "데이터 수신중..."
buff = clnt_sock.recv(1024)
print "수신 데이터 [%s]" % buff
